const { Sequelize } = require('sequelize');

const db = new Sequelize('personal_blog', 'root', '123456', {
  host: 'localhost',
  dialect: 'mysql'
});

// 创建一个数据库连接的实例,依赖的是连接池的方式

module.exports = db;